#!/usr/bin/python
#-*- coding: UTF-8 -*-
from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.views.static import serve
# Uncomment the next two lines to enable the admin:
from django.contrib import admin

import avatar.urls

admin.autodiscover()


#静态文件
urlpatterns = patterns('bobohb-hula.avatar.views',
                        url(r'^static/(?P<path>.*)$', serve,{'document_root': settings.STATIC_URL_HULA, 'show_indexes':True}),
                        )

urlpatterns += patterns('',
                       url(r'^admin/', include(admin.site.urls)),
                       url(r'^robots.txt$', include('robots.urls')),
                       )
urlpatterns += patterns('',
                        url(r'^avatar/', include(avatar.urls)),
                        )


